﻿using System;
using System.Windows.Forms;
using Needle.Framework;
using Needle.DevToolkit.Win32;
using System.ComponentModel;
using Needle.Utils.Extensions;
using Needle.DevToolkit.Services;
namespace Needle.DevToolkit.UI
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            using (var toolKit = new ToolKit())
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                var shellForm = toolKit
                    .GetService<IComponentLoader>()
                    .LoadComponent<ShellForm>();
                Application.Run(shellForm);
            }
        }
    }
}
